package com.example.shuiyin.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 水印任务结果
 * 用于转换内部水印任务结果到对外API
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WatermarkTaskResult {
    private String taskId;
    private String status;
    private String message;
    
    /**
     * 从内部类型转换
     */
    public static WatermarkTaskResult fromInternal(com.example.shuiyin.dto.watermark.WatermarkTaskResult internal) {
        if (internal == null) {
            return null;
        }
        return WatermarkTaskResult.builder()
                .taskId(internal.getTaskId())
                .status(internal.getStatus())
                .message(null)
                .build();
    }
} 